package com.phiture.erp.produce.dal.mapper;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.phiture.erp.produce.dal.entity.ErpProduceInDO;
import com.phiture.erp.produce.dal.entity.ErpProduceMainPlanDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 主计划 Mapper
 *
 * @author lekaihuai
 */
@Mapper
public interface ErpProduceMainPlanMapper extends BaseMapperX<ErpProduceMainPlanDO> {

    default ErpProduceMainPlanDO selectByNo(String no){
        // 利用lambda表达式查询
        return selectOne(new LambdaUpdateWrapper<ErpProduceMainPlanDO>().eq(ErpProduceMainPlanDO::getNo, no));
    }

}